<div class="main-hook single-lamp-wrapper">
    <span @click.stop="emitPage" class="emit-page-hook"></span>
    <span @click.stop="prePage" class="pre-page-hook"></span>
    <span @click.stop="refreshPage" class="refresh-page-hook"></span>
    <div class="box-wrapper box1-hook" v-show="boxs.box1.show">
        <div class="single-lamp-hook">
            <div class="title">
                当前位置：运营管理&nbsp;->&nbsp;<span class="active">单灯管理</span>
            </div>
            <div class="search">
                <form class="form-hook">
                    <div class="row">
                        <span class="search-label">所属项目</span>
                        <select class="form-control w80 role-type-hook" name="isBad">
                            <option value="">全部</option>
                            <option v-for="(type,index) in isBad" :value="type.id" v-text="type.name"></option>
                        </select>
                        <span class="interval-lg"></span>
                        <span class="search-label">所属分组</span>
                        <select class="form-control w80 role-type-hook" name="isBad">
                            <option value="">全部</option>
                            <option v-for="(type,index) in isBad" :value="type.id" v-text="type.name"></option>
                        </select>
                        <span class="interval-lg"></span>
                        <span class="search-label">控制器类型</span>
                        <select class="form-control w80 role-type-hook" name="isBad">
                            <option value="">全部</option>
                            <option v-for="(type,index) in isBad" :value="type.id" v-text="type.name"></option>
                        </select>
                    </div>
                    <div class="row">
                        <span class="search-label">状态</span>
                        <select class="form-control w120 role-type-hook" name="operationState">
                            <option value="">全部</option>
                            <option v-for="(type,index) in operationState" :value="type.id" v-text="type.name"></option>
                        </select>
                        <span class="interval-lg"></span>
                        <span class="search-label">关键字搜索</span>
                        <select class="form-control w120 role-type-hook" name="key">
                            <option value="">全部</option>
                            <option v-for="(type,index) in lifeCycleState" :value="type.id" v-text="type.name"></option>
                        </select>
                        <span class="interval-xs"></span>
                        <input type="text" class="search-input lg" name="keyword" placeholder="关键字模糊搜索"  @keyup.enter="searchForm()">
                        <span class="interval-lg"></span>
                        <button type="submit" class="btn btn-blue search-hook" @click.stop="searchTable()">查询</button>
                        <span class="interval-xs"></span>
                        <button type="reset" class="btn btn-gray resert">清空</button>
                    </div>
                </form>
            </div>
            <div class="order_operation_btn">
                <button type="button" class="primary_btn return_btn" @click.stop="newPallet()">新建</button>
                <a class="primary_btn upfile_btn" id="uploadModel" style="padding: 8px 18px;">
                    <form class="form form-horizontal center-block identification-form-hook">
                        <input type="file" id="model" name="model" @change="uploadFile()">
                        Excel导入
                    </form>
                </a>
                <button type="button" class="primary_btn return_btn" @click.stop="exportExcel()">Excel导出</button>
            </div>
            <div class="custom-table-wrapper">
                <table class="custom-table single-lamp-table-hook"></table>
            </div>
        </div>
    </div>
    <div class="box-wrapper box2-hook" v-show="boxs.box2.show"></div>
    <div class="box-wrapper box3-hook" v-show="boxs.box3.show"></div>
    <div class="box-wrapper box4-hook" v-show="boxs.box4.show"></div>
</div>
<script type="text/javascript" src="js/back/operate/single_lamp/single_lamp.js" custom></script>